@import "theme.scss";

.header-tab-bar {
  padding: 60px 20px 0;
  width: 280px;
  margin: auto;
  border-bottom: 1px solid #eee;
  .mui-segmented-control {
    border: none;
    .mui-control-item {
      border: none;
      color: #333;
      font-size: 16px;
      &.mui-active {
        background-color: inherit;
        color: $_theme;
        font-size: 17px;
        position: relative;
        &::after {
          content: "";
          width: 100px;
          height: 2px;
          background-color: $_theme;
          display: block;
          position: absolute;
          left: 0;
          right: 0;
          bottom: 0;
          margin: auto;
        }
      }
    }
  }
}

.content-wrapper {
  width: 280px;
  padding-top: 30px;
  margin: auto;
  .hide {
    display: none;
  }
  .login-item,
  .register-item {
    input {
      width: 100%;
      height: 44px;
      border: 1px solid #eee;
      border-radius: 4px;
      font-size: 13px;
      &::-webkit-input-placeholder {
        color: #ccc;
      }
    }
    .code-wrap {
      input {
        width: 60%;
        border-radius: 4px 0 0 4px;
        border-right: none;
      }
      .get-code {
        width: 40%;
        height: 44px;
        background-color: $_theme;
        border-color: $_theme;
        border-radius: 0 4px 4px 0;
        font-size: 14px;
        &.actived {
          background-color: rgba(228, 57, 60, 0.5);
          border-color: rgba(228, 57, 60, 0.5);
        }
      }
    }
    .confirm {
      width: 100%;
      height: 44px;
      background-color: $_theme;
      border-color: $_theme;
      border-radius: 4px;
      font-size: 16px;
      margin-top: 30px;
    }
    .login-toggle {
      color: #018edd;
      font-size: 13px;
      margin-top: 20px;
      display: block;
    }
    .other-login {
      margin-top: 50px;
      p {
        font-size: 12px;
        color: #666;
        display: flex;
        justify-content: center;
        align-items: center;
        &::after,
        &::before {
          content: "";
          display: block;
          width: 60px;
          height: 1px;
          margin: 0 5px;
          background: linear-gradient(
            to left,
            rgba(204, 204, 204, 0.1) 0%,
            rgba(204, 204, 204, 1) 100%
          );
        }
        &::before {
          background: linear-gradient(
            to right,
            rgba(204, 204, 204, 0.1) 0%,
            rgba(204, 204, 204, 1) 100%
          );
        }
      }
      .img-box {
        margin-top: 15px;
        display: flex;
        justify-content: center;
        align-items: center;
        .login-icon {
          width: 40px;
          height: 40px;
          margin: 0 20px;
        }
      }
    }
  }
}

.slide-wrapper {
  width: 100%;
  height: 44px;
  margin: 0 0 15px;
  font-size: 13px;

  .slide_box {
    width: 100%;
    height: 46px;
    border-radius: 4px;
    background-color: #fff;
    color: #ccc;
    text-align: center;
    line-height: 44px;
    border: 1px solid #eee;
    position: relative;
    padding-left: 30px;
  }

  .slide_xbox {
    width: 60px;
    height: 44px;
    border-radius: 5px;
    background: #20b759;
    position: absolute;
    left: 0;
    top: 0;
    color: #fff;
  }

  .btn {
    cursor: pointer;
    width: 60px;
    height: 44px;
    float: right;
    background-color: #f1f1f1;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-image: url(../images/icon_youjiantou.png);
    background-repeat: no-repeat;
    background-size: 20px 15px;
    background-position: center;
  }
  .btn.loading {
    background-image: none;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .btn.loading::after {
    content: "";
    width: 32px;
    height: 32px;
    display: block;
    background-image: url(../images/loading.png);
    background-size: 100%;
    animation: loading 2s linear infinite;
  }
  .btn.active {
    background-image: url(../images/active.png);
    background-size: 26px;
    box-shadow: none;
  }
}
@keyframes loading {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(90deg);
  }
  50% {
    transform: rotate(180deg);
  }
  75% {
    transform: rotate(270deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
